<template>
 <div>
  微信支付
 </div>
</template>

<script>
 export default {
   data () {
     return {

     }
   },
   created(){
    this.getcode()
   },
   components: {

   },
   methods:{
    getcode(){
      console.log('wxzfdatawecode',this.$route)
      if(this.$route.query.code){
        localStorage.setItem('code',`${this.$route.query.code}`)
        localStorage.setItem('state',`${this.$route.query.state}`)
      }else{
      }
      this.$route.query
      this.$router.push('/login')
    }
   }
 }
</script>

<style>

 
</style>
